//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.jtny.nytb.equipment.enums;

public enum DataParamChartEnum {
    FLOW_CHART(1, "流向图"),
    BAR_CHART(2, "柱状图"),
    LINE_CHART(3, "折线图"),
    PIE_CHART(4, "饼图");

    private final Integer chart;
    private final String name;

    public static DataParamChartEnum getByChart(Integer chart) {
        DataParamChartEnum[] var1 = values();
        int var2 = var1.length;

        for(int var3 = 0; var3 < var2; ++var3) {
            DataParamChartEnum value = var1[var3];
            if (value.getChart().equals(chart)) {
                return value;
            }
        }

        return null;
    }

    public static DataParamChartEnum getByName(String name) {
        DataParamChartEnum[] var1 = values();
        int var2 = var1.length;

        for(int var3 = 0; var3 < var2; ++var3) {
            DataParamChartEnum value = var1[var3];
            if (value.getName().equals(name)) {
                return value;
            }
        }

        return null;
    }

    private DataParamChartEnum(Integer chart, String name) {
        this.chart = chart;
        this.name = name;
    }

    public Integer getChart() {
        return this.chart;
    }

    public String getName() {
        return this.name;
    }
}
